Skip to content

Architecture: the reference split into a wiki of pages by area - #1898

Open
vmillet-dev wants to merge 2 commits into
dev/1.3.3from
architecture-wiki
Open

vmillet-dev wants to merge 2 commits into
dev/1.3.3from
architecture-wiki

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #1841

docs/architecture.md (6 953 lines) becomes docs/architecture/, a wiki: a home page (README.md) that maps the pages — what each holds, when to read it —, says how a section is named and where a new one goes; then one page an area, each opening with a line on what it covers and a link home.

Page Lines
overview.md · decisions.md · interface.md · backend.md 137 · 39 · 231 · 328
notes/kinds.md · notes/cards.md · notes/editing.md 445 · 616 · 446
spaces-folders-board.md 666
http/requests.md · http/environments-and-scripts.md · http/drawn.md 475 · 245 · 229
tools.md · window.md · libraries.md · engine.md 662 · 620 · 567 · 420
i18n-accessibility-theming.md · releasing.md · testing.md · website.md 164 · 194 · 418 · 92

The text moves as it is. Each section moves whole, in the place the ticket gives its area; the sections the ticket names no page for went beside their neighbours (the checklist's « Reordering » to editing, « Untriaged », the card menu and the header row to cards, the library rail to spaces and folders, « Data access » to the backend, « Leaving with requests not saved » to HTTP on screen). Only heading levels change, and one heading's name: the interface's The gate is now The gate, drawn (the vault's keeps its name, which CLAUDE.md names). Four links to an anchor of the old file now name their page.

Headings aside, the wiki's text against the old file's (each side's lines sorted, since sections moved) — the four links, and the 55 lines added (the opening lines and the home page):

<   on `deleted_at IS NULL`. See [The trash](#the-trash-and-undoing-a-deletion) for what that
< For build/run instructions see [CONTRIBUTING](../CONTRIBUTING.md).
< returns to the interface (see [Data access](#data-access)). Its rules sit in two modules of its
< visualiser draws — see [The JSON visualiser's model](#the-json-visualisers-model).
>   on `deleted_at IS NULL`. See [The trash](notes/editing.md#the-trash-and-undoing-a-deletion) for what that
> For build/run instructions see [CONTRIBUTING](../../CONTRIBUTING.md).
> returns to the interface (see [Data access](backend.md#data-access)). Its rules sit in two modules of its
> visualiser draws — see [The JSON visualiser's model](tools.md#the-json-visualisers-model).

The check — scripts/architecture-links.mjs reads every name after an arrow (→ "…", → « … », a list after one arrow, a name wrapped over two comment lines) in the Markdown, Rust, TOML, YAML and scripts of the repository, and fails when it finds no section or more than one; it fails too on a heading twice in the wiki, and on a relative link between pages, or into the wiki from anywhere, that leads nowhere or names an anchor its page does not have. A name is a heading, or the bold words opening a paragraph (→ "Closing is not quitting"), and may stop where its heading goes on after a comma, a colon or a bracket (→ "A card is two layers"): that is how CLAUDE.md already names them. A name after another file (`CONTRIBUTING.md` → "…") is looked for in that file. Its test runs it on the repository, so CI's « Lint docs » job holds it.

Repointed — CLAUDE.md, the local skills (add-feature, desktop-e2e-testing, devnotes-security-review, egui-ui, performance-profiling, platform-integration, rust-guidelines' own SKILL.md), CONTRIBUTING.md, the README's table, Cargo.toml, ci.yml, website.yml, docs/releasing.md (which now links the wiki's releasing.md) and perf.rs. Three names led nowhere before the split, and the check found them: « Error contract » (now « Errors are codes »), « Window geometry » (« The binary, its profile and its window ») and « The modal frame » (« The widget kit »).

Where this differs from the ticket

  • There is no package.json at the root (test:scripts is the website's): the check is scripts/architecture-links.test.mjs, which CI's node --test "scripts/*.test.mjs" picks up with the other script tests.
  • npm run lint is the website's ESLint and reads no Markdown; the repository has no Markdown linter, so nothing was run for that line.
  • Four pages pass ~600 lines a little (notes/cards.md 616, window.md 620, tools.md 662, spaces-folders-board.md 666): they hold what the ticket puts in them, and the home page says a page past ~600 lines is split into a folder, as notes/ and http/ are.

Checks run (Linux)

  • node --test "scripts/*.test.mjs": 77 pass, 13 of them the new check's — a name found nowhere, a name found twice, a name cut mid-heading, a list, a wrapped name, a name in another file, a string holding an arrow, a heading in a code block, broken links and anchors, and the repository itself.
  • node scripts/architecture-links.mjs: clean. Before the references were repointed it reported exactly the three broken names above.
  • cargo fmt --all --check; cargo metadata (the Cargo.toml comment). No Rust code changed besides one comment.

Generated by Claude Code

docs/architecture.md becomes docs/architecture/: a home page that maps
the pages, then one page an area, each opening with what it covers and a
link home. Every section moves whole and unchanged; only heading levels,
four relative links and one heading (the UI's « The gate, drawn ») change.

scripts/architecture-links.mjs fails when a name after an arrow finds no
section or more than one, and when a link into or between the pages leads
nowhere; its test runs it on the repository. Three references broken
before the split are repointed.

Closes #1841

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants